package com.xiaofeng.subject.domain.convert;


import com.xiaofeng.subject.domain.entity.SubjectInfoBO;
import com.xiaofeng.subject.domain.entity.SubjectLabelBO;
import com.xiaofeng.subject.domain.entity.SubjectOptionBO;
import com.xiaofeng.subject.infra.basic.entity.SubjectInfo;
import com.xiaofeng.subject.infra.basic.entity.SubjectLabel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


/**
 * Created with IntelliJ IDEA
 *
 * @Author: chc
 * @Date: 2024/01/23/20:34
 * @Description:
 */
@Mapper
public interface SubjectInfoConverter {

    SubjectInfoConverter INSTANCE = Mappers.getMapper(SubjectInfoConverter.class);

    SubjectInfo convertBOToInfo(SubjectInfoBO subjectInfoBO);

    SubjectInfoBO convertOptionToBO(SubjectOptionBO subjectOptionBO);

    SubjectInfoBO convertOptionAndInfoToBO(SubjectOptionBO subjectOptionBO,SubjectInfo subjectInfo);

    List<SubjectInfoBO> convertListInfoToBO(List<SubjectInfo> subjectInfoList);


}
